package com.hwua.entity;

public class Product {
    private long id;
    private String name;
    private String description;
    private double price;
    private long stock;
    private long major_id;
    private long minor_id;
    private String img_source;

    public Product() {
    }

    public Product(long id, String name, String description, double price, long stock, long major_id, long minor_id, String img_source) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.price = price;
        this.stock = stock;
        this.major_id = major_id;
        this.minor_id = minor_id;
        this.img_source = img_source;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public long getStock() {
        return stock;
    }

    public void setStock(long stock) {
        this.stock = stock;
    }

    public long getMajor_id() {
        return major_id;
    }

    public void setMajor_id(long major_id) {
        this.major_id = major_id;
    }

    public long getMinor_id() {
        return minor_id;
    }

    public void setMinor_id(long minor_id) {
        this.minor_id = minor_id;
    }

    public String getImg_source() {
        return img_source;
    }

    public void setImg_source(String img_source) {
        this.img_source = img_source;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                ", major_id=" + major_id +
                ", minor_id=" + minor_id +
                ", img_source='" + img_source + '\'' +
                '}';
    }
}
